/**
 * 
 */
package dms.repository;

import java.util.List;

import dms.model.Building;
import dms.model.Campus;
import dms.model.util.PageIterator;

/**
 * @author 李健
 *
 */
public interface BuildingRepository {
	PageIterator<Building> findByCampus(int start, int count, Campus campus);
	
	Building findById(Long id);
	
	PageIterator<Building> findAll(int start, int count);
	
	Building createBuilding(Building building);
	
	Building updateBuilding(Building building);
	
	void deleteBuildingById(Long id);
	
	void deleteBuildings(List<Long> ids);
}
  